package oopwork;

class Student{
    private String name;
    private int id;
    private String className;
    private String gender;
    private int age;
    private String character;

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }


    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getCharacter() {
        return character;
    }

    public void setCharacter(String character) {
        this.character = character;
    }
    public void say(){
        System.out.println("我的名字是"+name+"。我的id是"+id+"。我的班级是"+className+"。我的性别是"+gender+"。我"+age+"岁。我的性格是"+character);
    }
}

public class MyStudent {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.setAge(18);
        stu1.setCharacter("开朗");
        stu1.setId(123354);
        stu1.setName("ming");
        stu1.setGender("男");
        stu1.setClassName("土管");
        stu1.say();
        Student stu2 = new Student();
        stu2.setAge(19);
        stu2.setCharacter("诚实");
        stu2.setId(124654);
        stu2.setName("wang");
        stu2.setGender("男");
        stu2.setClassName("地信");
        stu2.say();
        Student stu3 = new Student();
        stu3.setAge(19);
        stu3.setCharacter("正直");
        stu3.setId(174684);
        stu3.setName("liu");
        stu3.setGender("男");
        stu3.setClassName("城规");
        stu3.say();
    }
}
